package com.jiang.annotation.aop.retryable;

import com.jiang.annotation.aop.cacheable.CacheableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/retry")
public class RetryableController {

    @Autowired
    private RetryableService retryableService;

    @GetMapping("test1")
    public String test1() throws Exception {
        return retryableService.doSomething();
    }
}
